package com.designpattern.prototype.demo2;

import java.util.Date;

public class BiliBili {

    public static void main(String[] args) throws CloneNotSupportedException {
        Date date = new Date();
        Video v1 = new Video("狂神手JAVA", date);
        System.out.println("v1=>" + v1.toString());
        System.out.println("v1=>hash:"+v1.hashCode());

//v1 克隆 v2

        Video v2 = (Video) v1.clone();
        Date date1 = new Date();
        date1.setTime(11321321);
        v1.setCreateTime(date1);

        System.out.println("v2=>" + v2.toString());
        System.out.println("v1=>" + v1.toString());
        System.out.println("v2=>hash:"+v2.hashCode());


    }
}
